package com.beimi.room;

import java.util.concurrent.ConcurrentHashMap;

public class RoomPlayerMgr {
	private ConcurrentHashMap<String, RoomPlayer> players;
	
	public RoomPlayerMgr() {
		players = new ConcurrentHashMap<>();
	}
	
	public void addMatchPlayer(String sessionID, RoomPlayer player) {
		players.put(sessionID, player);
	}
	
	public RoomPlayer getPlayer(String sessionID) {
		return players.get(sessionID);
	}
}
